fix(account-sdk): require factoryData for undeployed smart accounts - #378
fix(account-sdk): require factoryData for undeployed smart accounts#378omerbek wants to merge 1 commit into
Conversation
🟡 Heimdall Review Status
|
ae02cd5 to
8142f08
Compare
|
Reviewed the fix — the analysis in #377 is correct and failing early is the right call. The two-branch Also agree that deriving One edge case worth verifying before merge: Worth grepping the SDK for |
Closes #377.
What changed
getFactoryArgs()throw a clearBaseErrorwhenfactoryDatais missing.factoryDatapaths.Why
When
factoryDatais undefined, returning{ factory, factoryData: undefined }can silently produce no init code for an undeployed account and defer the failure to bundler/EntryPoint simulation. The SDK cannot safely derive Coinbase Smart Account factory data from only a single owner and owner index, so failing early is safer.Testing
git diff --checkcorepack yarn workspace @base-org/account test createSmartAccountcould not run because the local checkout has no Yarn state/install (Couldn't find the node_modules state file).